package com.enlilempire.player;

import java.util.ArrayList;

import com.enlilempire.player.inventory.InventoryFactory;

/**
 * Personnage
 * @author akrogames
 *
 */
public class Character {
	String name;
	int life;
	ArrayList<Characteristic> characteristics;
	ArrayList<Skill> skills;
	
	InventoryFactory bag;
	InventoryFactory head;
	InventoryFactory torso;
	InventoryFactory lefthand;
	InventoryFactory righthand;
	InventoryFactory leftfoot;
	InventoryFactory rightfoot;
	
	public Character(String name) {
		this.name = name;
		this.life = 100;
		
		this.initCharacteristics();
		this.initSkills();
		this.initInventory();
	}
	
	/**
	 * 
	 */
	private void initCharacteristics() {
		this.characteristics = new ArrayList<Characteristic>();
		
		this.characteristics.add(new Characteristic("Force", 1));
	}
	
	/**
	 * 
	 */
	private void initSkills() {
		this.skills = new ArrayList<Skill>();
		
		this.skills.add(new Skill("Vol", 1));
	}
	
	/**
	 * 
	 */
	private void initInventory() {
		this.bag = new InventoryFactory(20);
		this.head = new InventoryFactory(2);
		
		this.lefthand = new InventoryFactory(2);
		this.righthand = new InventoryFactory(2);
		
		this.leftfoot = new InventoryFactory(2);
		this.rightfoot = new InventoryFactory(2);
	}
	

}
